import http from './request'

//获取数据
export const shipoperationfilesList = (data, current, size) => {
    return http({
        url: '/hongyun-training/shipoperationfiles/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
// 逻辑删除
export const shipforecastRemove = (ids) => {
    return http({
        url: `/hongyun-training/shipforecast/remove?ids=${ids}`,
        method: 'POST'
    })
}
// 新增或修改
export const shipoperationfilesSubmit = (data) => {
    return http({
        url: `/hongyun-training/shipoperationfiles/submit`,
        method: 'POST',
        data: data
    })
}
// 详情
export const shipoperationfilesDetail = (id) => {
    return http({
        url: `/hongyun-training/shipoperationfiles/detail?id=${id}`,
        method: 'GET'
    })
}
// 详情
export const previewFile = (url) => {
    return http({
        url: `/hongyun-training/systemfilepreview/preview?url=${url}`,
        method: 'POST'
    })
}